Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Apr 15, 2025

This PR contains the following updates:

Package Change Age Confidence
eslint-plugin-react 7.37.47.37.5 age confidence
eslint-plugin-react-refresh 0.4.190.5.0 age confidence
react-router-dom (source) 6.30.06.30.3 age confidence

Release Notes

jsx-eslint/eslint-plugin-react (eslint-plugin-react)

v7.37.5

Compare Source

Fixed
Changed
ArnaudBarre/eslint-plugin-react-refresh (eslint-plugin-react-refresh)

v0.5.0

Compare Source

Breaking changes
  • The package now ships as ESM and requires ESLint 9 + node 20. Because legacy config doesn't support ESM, this requires to use flat config
  • A new reactRefresh export is available and prefered over the default export. It's an object with two properties:
    • plugin: The plugin object with the rules
    • configs: An object containing configuration presets, each exposed as a function. These functions accept your custom options, merge them with sensible defaults for that config, and return the final config object.
  • customHOCs option was renamed to extraHOCs
  • Validation of HOCs calls is now more strict, you may need to add some HOCs to the extraHOCs option

Config example:

import { defineConfig } from "eslint/config";
import { reactRefresh } from "eslint-plugin-react-refresh";

export default defineConfig(
  /* Main config */
  reactRefresh.configs.vite({ extraHOCs: ["someLibHOC"] }),
);

Config example without config:

import { defineConfig } from "eslint/config";
import { reactRefresh } from "eslint-plugin-react-refresh";

export default defineConfig({
  files: ["**/*.ts", "**/*.tsx"],
  plugins: {
    // other plugins
    "react-refresh": reactRefresh.plugin,
  },
  rules: {
    // other rules
    "react-refresh/only-export-components": [
      "warn",
      { extraHOCs: ["someLibHOC"] },
    ],
  },
});
Why

This version follows a revamp of the internal logic to better make the difference between random call expressions like export const Enum = Object.keys(Record) and actual React HOC calls like export const MemoComponent = memo(Component). (fixes #​93)

The rule now handles ternaries and patterns like export default customHOC(props)(Component) which makes it able to correctly support files like this one given this config:

{
  "react-refresh/only-export-components": [
    "warn",
    { "extraHOCs": ["createRootRouteWithContext"] }
  ]
}

[!NOTE]
Actually createRoute functions from TanStack Router are not React HOCs, they return route objects that fake to be a memoized component but are not. When only doing createRootRoute({ component: Foo }), HMR will work fine, but as soon as you add a prop to the options that is not a React component, HMR will not work. I would recommend to avoid adding any TanStack function to extraHOCs it you want to preserve good HMR in the long term. Bluesky thread.

Because I'm not 100% sure this new logic doesn't introduce any false positive, this is done in a major-like version. This also give me the occasion to remove the hardcoded connect from the rule. If you are using connect from react-redux, you should now add it to extraHOCs like this:

{
  "react-refresh/only-export-components": ["warn", { "extraHOCs": ["connect"] }]
}

v0.4.26

Compare Source

v0.4.25

Compare Source

  • Report cases like export const ENUM = Object.keys(TABLE) as EnumType[]; (fixes #​93)
  • Allow _ in component names (#​94)

v0.4.24

Compare Source

  • Add "generateImageMetadata", "generateSitemaps" & "generateStaticParams" to allowExportNames in Next config

v0.4.23

Compare Source

  • Add "metadata", "generateMetadata" & "generateViewport" to allowExportNames in Next config

v0.4.22

Compare Source

  • Add "viewport" to allowExportNames in Next config (#​89)

v0.4.21

Compare Source

  • Add Next config (fixes #​85)

This allows exports like fetchCache and revalidate which are used in Page or Layout components and don't trigger a full page reload.

import reactRefresh from "eslint-plugin-react-refresh";

export default [
  /* Main config */
  reactRefresh.configs.next,
];

v0.4.20

Compare Source

  • Don't warn on nested HOC calls (fixes #​79)
  • Fix false positive with as const (fixes #​80)
remix-run/react-router (react-router-dom)

v6.30.3

Compare Source

v6.30.2

Compare Source

v6.30.1

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 8938412 to 69a9498 Compare April 15, 2025 15:37
@socket-security
Copy link

socket-security bot commented Apr 15, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedreact-router-dom@​6.30.0 ⏵ 6.30.1981007399100
Updatedreact-router@​6.30.0 ⏵ 6.30.1971007699100
Updatedeslint-plugin-react-refresh@​0.4.19 ⏵ 0.4.20100 +110099 +186100
Updatedeslint-plugin-react@​7.37.4 ⏵ 7.37.598 +110010087100

View full report

@renovate renovate bot force-pushed the renovate/react-dependencies branch from 69a9498 to 78e7763 Compare April 16, 2025 10:09
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 78e7763 to c7636e9 Compare April 16, 2025 10:09
@renovate renovate bot changed the title Update dependency eslint-plugin-react to v7.37.5 Update react dependencies Apr 22, 2025
@renovate renovate bot force-pushed the renovate/react-dependencies branch from c7636e9 to 4104d9a Compare April 22, 2025 02:16
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 4104d9a to 03e7800 Compare April 22, 2025 02:17
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 03e7800 to 365bf9a Compare May 6, 2025 02:17
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 365bf9a to dc4d2ab Compare May 6, 2025 02:17
@renovate renovate bot force-pushed the renovate/react-dependencies branch from dc4d2ab to 3a44b85 Compare May 6, 2025 02:20
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 3a44b85 to 2f53892 Compare May 6, 2025 02:20
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 2f53892 to 2c9b8ed Compare May 6, 2025 02:42
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 2c9b8ed to 3805e1f Compare May 6, 2025 02:42
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 3805e1f to 533dd53 Compare May 19, 2025 18:03
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 533dd53 to c38300b Compare May 19, 2025 18:03
@renovate renovate bot force-pushed the renovate/react-dependencies branch from c38300b to 3f594a7 Compare May 19, 2025 19:03
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 3f594a7 to 6166782 Compare May 19, 2025 19:03
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 6166782 to d5c5beb Compare May 19, 2025 19:47
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from d5c5beb to 98cd161 Compare May 19, 2025 19:47
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 98cd161 to 3a311e5 Compare May 21, 2025 02:15
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 3a311e5 to 3975cb8 Compare May 21, 2025 02:15
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 3975cb8 to 04fb4a8 Compare May 21, 2025 21:50
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 04fb4a8 to b26f404 Compare May 21, 2025 21:50
@renovate renovate bot force-pushed the renovate/react-dependencies branch from b26f404 to 036eeba Compare May 22, 2025 20:52
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 036eeba to 471b923 Compare May 22, 2025 20:52
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 471b923 to 85abb3c Compare May 22, 2025 21:23
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 85abb3c to 2c3179e Compare May 22, 2025 21:23
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 2c3179e to c51540c Compare May 23, 2025 21:36
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from c51540c to 889a5d4 Compare May 23, 2025 21:36
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 889a5d4 to 4cc1925 Compare May 23, 2025 21:39
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from ffde0ee to d4dc729 Compare January 7, 2026 21:42
@renovate renovate bot force-pushed the renovate/react-dependencies branch from d4dc729 to cbfc8c5 Compare January 8, 2026 18:41
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from cbfc8c5 to 23e7600 Compare January 8, 2026 18:41
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 23e7600 to 6f1abfb Compare January 12, 2026 09:03
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 6f1abfb to 4140feb Compare January 12, 2026 09:03
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 4140feb to 4ddc45a Compare January 15, 2026 16:30
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 4ddc45a to 674f434 Compare January 15, 2026 16:30
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 674f434 to 09b0086 Compare January 16, 2026 19:58
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 09b0086 to 93e6560 Compare January 16, 2026 19:58
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 93e6560 to afae19f Compare January 17, 2026 04:17
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from afae19f to 798df7e Compare January 17, 2026 04:18
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 798df7e to c4833b2 Compare January 19, 2026 11:35
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from c4833b2 to 516b7ed Compare January 19, 2026 11:35
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 516b7ed to 748c588 Compare January 19, 2026 14:29
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 748c588 to 98aae1e Compare January 19, 2026 14:30
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 98aae1e to c1024d3 Compare January 19, 2026 14:34
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from c1024d3 to d2d8761 Compare January 19, 2026 14:34
@renovate renovate bot force-pushed the renovate/react-dependencies branch from d2d8761 to 84bd20d Compare January 19, 2026 22:47
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 84bd20d to d43d985 Compare January 19, 2026 22:48
@renovate renovate bot force-pushed the renovate/react-dependencies branch from d43d985 to d41b250 Compare January 20, 2026 15:37
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from d41b250 to 5af0bab Compare January 20, 2026 15:37
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 5af0bab to bafbc58 Compare January 23, 2026 20:03
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from bafbc58 to 858a9d0 Compare January 23, 2026 20:03
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 858a9d0 to 9f6c7f4 Compare January 25, 2026 06:20
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 9f6c7f4 to 1f38b2f Compare January 25, 2026 06:21
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 1f38b2f to bc83783 Compare February 1, 2026 14:11
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from bc83783 to 1add653 Compare February 1, 2026 14:11
@renovate renovate bot force-pushed the renovate/react-dependencies branch from 1add653 to 3e82240 Compare February 2, 2026 17:57
@github-actions github-actions bot force-pushed the renovate/react-dependencies branch from 3e82240 to 16f7cc0 Compare February 2, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants